package io.adrainty.demo.seata.storage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.adrainty.demo.seata.storage.models.bo.StorageBO;

/**
 * <p>IStorageService</p>
 *
 * @author AdRainty
 * @version V1.0.0
 * @description IStorageService
 * @since 2025/8/20 13:58:52
 */

public interface IStorageService extends IService<StorageBO> {

    /**
     * 购买商品
     *
     * @param productId 商品id
     * @param skuId     skuId
     * @param count     扣减数量
     * @return 扣减结果
     */
    Boolean doShop(String accountNo, Long productId, Long skuId, Integer count);

}
